package com.own.component.autoconfig;

import com.own.component.autoconfig.property.message.MessageProperties;
import com.own.component.autoconfig.property.netty.NettyProperties;
import com.own.component.autoconfig.property.redis.RedisProperties;
import com.own.component.autoconfig.property.security.SecurityProperties;
import com.own.component.autoconfig.property.token.TokenProperty;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * AutoConfigInstance
 *
 * @author chenxueli
 * @date 2022-08-11 16:55:00
 */
@Component
public class AutoConfigInstance {

    public static AutoConfigInstance INSTANCE;

    @Resource
    public SecurityProperties securityProperties;

    @Resource
    public TokenProperty tokenProperty;

    @Resource
    public RedisProperties redisProperties;

    @Resource
    public NettyProperties nettyProperties;

    @Resource
    public MessageProperties messageProperties;

    @PostConstruct
    public void init() {
        INSTANCE = this;
    }

}
